Some overhaul of global js in light of recent discoveries