Wiring up some of the jQuery when creating the dynamic form

There were a few things that were not wired up correctly with gist files:

- [ ] fixing the file type select box to update the ace editor 
- [ ] setting the file type on existing files