Split code and data into seperate js files