Added fromClass to use bare js class with JSClass. It adds init method