Added javascript testing and test page. fixes #74