conversion to requireJS
Add conversion to requirejs