trailing spaces removed
Add missing semi-colons
Add missing semi-colon and adjusted operator (!= -> !==)
Operators updated