fix contenthandler js error