Improve usage of requirejs and a bit more framework.