Refactored RequireJS modules and updated plugins