Style fixes.
Style fixes for jslint.
Added global declaration.