Fix js warning