Algorithm For Fibonacci Series Using Javascript