Fix typo in javascript is ruby