Move loose code snippets into immediate function with "use strict" statement for XBox One validation.