Structuring the javascript files.