updating API for requirejs methods