changed a little js.