Refactor JS for importing/editing SCL:

- more concise usage of jQuery
- refresh collections list dynamically as user stops typing
- handle JS changing the collection name on the scls/new page better
validate_name