Big JavaScript update. Better minification, better testing.
Synced from master
Synced from master