tweaks to remove items from global scope

Made 2 changes, one small (moved 'use strict' out of global scope) and one bigger ('intentionWrapper' became an anonymous function, removed from the global scope). If you don't like the changes, feel free to yell at me when you get back in the office.