Fixed setTimeout loop
Added ranges to vertical axis on graphs