fixing up appjs and grunt file