initial js for subscribe