Wrote fibononacci and json menu ids in JavaScript