move the build system to Grunt and commonjs application style