Grammar fixed and JS code formatted.