remove duplicated javascript (merge issue)