Updated Animation

updated how the app handles the animation of lines and pulses. Now more
efficient and won't lose sync when browser lags.