correcting a typo

Just  a small typo in the javascript.