Declare scrobj with var