edited id error in js