JavaScript Corrections