Update object.class.js

as suggested by Kienz.