fixed server grunt file and errors

fixed server grunt file and errors