javascript to calculate Fibonacci numbers
close to finishing