to pass jshint added missing semicolons