fixed double js insert