changed != to !== and added missing semicolons