Fixed mistype in javascript code