launch javascript on edit page