Refactored Javascript.  Working on collection creation UI.