Revert changes to dualmode.js