JShint missing semicolons,  changed res.end  to res.end()