added grunt tasks and fix jslint errors