defaults: Added different viewport options.
test_runjs: splitted RunJsTest to a baseclass and a test class.
tests: added simple geometry test.