style fixes

- Space between `if` and `(`
- use triple equals
- newline after eof
simplify if statement
fix plugin when there is text in the input
update minified js