Little adjustments (semicolon,  comma and if comparison)

JSHint warnings