function rename: var to _var

"var" is a javascript-reserved keyword, cannot be used as function name... changed it to "_var" and should be used that way