Snippet to defer loading of an external js file