dialog require js