simpler fibonacci generator

avoids using nested lambdas which just seems ugly
first problem solved in javascript