Remove Javascript global variables.

Don't appear to be required anymore.

Change-Id: I8fc00979742aad58cb4aa0bccc84c16ab116d543