Update quintus_physics.js

Several refactors changes