project euler javascript