Fixed one small error in javascript