JS to get map bounds every few seconds