Tweaked JS to be more JS version friendly

Main code rev. 1814
Made default JS not rely on jQuery aliasing $()

Main code rev. 1816
Added some helper VMETHODS to TT

Main code rev. 1817