Used JShint to clean up all my code - should run a little faster / fixed up a few small bugs.