Fix js warnings