Fixed jshint warnings -- added missing semicolons and removed trailing whitespace.