Very clever technique.<p>You may be able to improve it slightly depending on the particulars of your workflow. For example, you could do the refresh conditionally based on other factors, say, the protocol or pathname so that even if the line <i>did</i> make it into production, you'd still be ok.<p>Even better still would be to inject that javascript only in the development environment.