PM|AD: added grunt to build/run process, and tidy up js