removed console log
fixed a js error