Add var to undeclared variables and a function wrapper

Changes to swagger.js  2.0.39:
- add var to all undeclared variables (so they don't appear as global variables)
- add function wrapper to hide all local variables
- reformat indentation