ensure js variables are in the global scope