Split out client JS
Adds heartbeat demo datapoints