Changed != into !===, == into ===, and added semicolons where needed.