Added javascript to open Ended Items dialog