Moved var declaration into js file.