fix js position bug