In the middle of converting to requirejs