Fix js dependencies problems