fixed some minor syntax errors highlighted by jshint