Fix global variable 'data' in JoinClause.on method

Found this global in the node-debug interface:

`data = ["on", "and", "users.id", "=", "user_package.user_id"]`

Tracked it down in 3 files and added var data; at top of the function to avoid this.

Tested again and no more global "data" found.