Scopes all the javascript stuff!