lots of updates for 3.0.0 TB, adding in better support for running javascript when laoding