Fix js http issue