Updated `sjl.classOf` to be backward compatible with ie8.