Fixing minor errors (mostly semi colon) reported by jshint