'use strict' moved to the start of function