adds catch in js for when speed and hor_speed is not defined (was preventing app from loading)