Update fp_js_validator.js

Sorry for all the commits. This is the final version, the correct one.