Fixed lack of syntactic knowledge of javascript