Fixed some JS code