more of the clean(ish) code in javascript (committing supporting changes before starting on the huge task of 'new_task_type' purification... of sorts)... still am hacking on... and on... still do EXPECT (regression) BUGS.