Fix syntax error on if statement
Add compiled and minified javascript