added example of usage with RequireJS