Fixed if statement syntax
Now minifying javascript