First steps in converting to requirejs