Coding using JS and JSON