RD: Renamed var to eVar, as var is a reserved word

using var breaks in IE8.

resolves #3