Refactored sample page, using requirejs, modular widgets w/factory & builder