code cleanup: move text selection tools definition and menu generation out of index.html
BugFix: add missing library (Pixastic)