made comments and variations toggleable (deploy/collapse) an option
moved function definition to pass jshint