fix syntax error and fix sockjs with grunt serve