improve js parser speed