replace initial js plot