I'm working through project euler in javascript