WIP: Adding spec tests for javascript

Confirming that too-large input fails successfully, and that removing the
validations from the js causes failing fails.