Fix js compile warning