Add comments to js, show json data when form is submitted