move to RequireJS (draft test implementation)