Fixed typo in javascript that displayed the wrong information to users