add functional js tutorial