rename and mark script tags
switch to json respresentation of order info
adapt tests
split JS to seperate files

- add JS manifest
- add mksort library for SQL style sorting
- implement ordered inserting of new items