Add uglify-js as build tool to make a smaller scripts.js file
changed promise library from bluebird to when - bluebird is too big for some simple tasks