Update testscript.js

re-organized a bit, added support for different character classes, including a menu to select one