seperate js files and fixed grunt build task