Declare some Javascript variables with 'var'.
Declare some Javascript variables with 'var'.

Closes GH-1297.

antek-drzewiecki/passenger,antek-drzewiecki/passenger,phusion/passenger,cgvarela/passenger,kewaunited/passenger,antek-drzewiecki/passenger,phusion/passenger,cgvarela/passenger,phusion/passenger,kewaunited/passenger,cgvarela/passenger,clemensg/passenger,antek-drzewiecki/passenger,clemensg/passenger,kewaunited/passenger,clemensg/passenger,antek-drzewiecki/passenger,phusion/passenger,kewaunited/passenger,antek-drzewiecki/passenger,cgvarela/passenger,clemensg/passenger,kewaunited/passenger,kewaunited/passenger,cgvarela/passenger,cgvarela/passenger,cgvarela/passenger,antek-drzewiecki/passenger,clemensg/passenger,antek-drzewiecki/passenger,clemensg/passenger,phusion/passenger,phusion/passenger,kewaunited/passenger,cgvarela/passenger,phusion/passenger,kewaunited/passenger,clemensg/passenger,phusion/passenger,clemensg/passenger