Fixed undeclared var, and added 'use strict' to master.js