Changed RequireJS code and main function expression