Added anonymous function call for requirejs support