Re-arrange baseline setup section.

Put all variable declartions in a row, so they can all be
chained together with commas by compiler.

Move wrapper creation code down in OO section.  Not necissary
for `var wrapper` to be defined when _ constructor is defined.
Preparing way to make OO wrapping optional..
(cherry picked from commit 1cf73c5474c7ba6fc9ee99aa42d5116ea2527b49)