Update Javascript
Adapt heartbeat pulse