[js] abstract access to obj class property in preparation for having objects with no class (int value objects which are not pointers)
[js] trickery - store immediate integer values in obj_t pointers in order to save allocations.