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

Making some minor adjustments and testing the pull req dev cycle at the same time.