funct js trying to understand trampolines

tried to understand trampolines and kind of understood the concept but
had to cheat to make it work.