Use javascript strict mode.
Fix strict javascript errors.