Moved demo.html over to using require.js defined AMD modules. Tests not yet migrated