Cleaning up input for JS Problem 8
JS solutions to #9 and #10, along w/ bugfix in primesUpTo