Splits javascript up into two files (tasks.js and main.js)