- add script functionality

known bugs:
- does not preserve script order in table :(
front-end:

- table preserves script order
- fixed the content jumping when a modal dialog opens