Update object.class.js

Rename variable and methods