First >>1010575
but not using var would be an implicit global var which is invalid in strict mode (put '"use strict";' in the first line) so you should use window.x=1; for declaration.
The js files are run in the order they appear in in the HTML, so
<script src="page.js"></script>
<script src="page2.js"></script>
should work fine. No need for complicated extras or modules or classes or whatever.