Moved var declaration into js file.
Merge pull request #68 from CruGlobal/r-dev

Moved var declaration into js file.