fixed typo in javascript post