Greatly cleaned up JS, fixed up the pause functionality, and made progress toward adding back in the setting panel functionality