Strip duplicate JavaScript