fixed sending js issue