fixed a small error in the js