Spinner when loading external javascript