Created scope_js.html and copied the functions from functions_js.html but refactored them using self invoking functions and getting rid of variables in the global scope