Split out map javascript, added timestamp to incoming data