functioning cannonjs demo integration
more demo refactoring