Add grunt file. Fix jslint issues