Removed from global scope. Changed define/amd scope and added.