Adds initJS and remove duplicated lines