move globals to globals.js
add continuous physics toggle global