If the question is how to combine multiple JavaScript files into one global scope in an HTML document efficiently, so that both forward and backward variable, constant, and function references are valid, then I've answered this at Global variables in Javascript across multiple files .