JavaScript clean up with JSHint and 'use strict'