updating methods to use new requirejs calls