Enable strict mode, and fix global variable problems.