basic proof of concept using Require.js modules