class for js