PM: refactor - get requireJS to work