Added main loop
Merge branch 'master' of https://github.com/chrstein/x3dom