wip: requirejs refactor working, no tests