add `setup.py jsversion`

for writing the IPython version to `IPython.version` in javascript.

supersedes #4357
added test of IPython.version to js test suite
fix js test print statement on python 3