add subscriber js methods to implement