Fix semicolons and use == instead of ===