added js minify, set script in main view