Use Python 3 compatible syntax in tests
Separate out machinery for running JS tests
Merge pull request #2 from takluyver/notebook-casperjs-tests

Tweaks to casperjs tests