delete unnecessary js lines