added "var" to beginning of object globals