Modify the integration tests to use JS for the input data

This is intended to allow for more detailed tests of JS-specific functionality
such as method calls.
Add test checking for the issue reported in schmittjoh/twig.js#83