Removed unneccessary doctype
diff --git a/erpnext/www/book-appointment/index.js b/erpnext/www/book-appointment/index.js
index 5bc8af0..b2df3b4 100644
--- a/erpnext/www/book-appointment/index.js
+++ b/erpnext/www/book-appointment/index.js
@@ -165,12 +165,13 @@
 async function submit() {
     // form validation here
     form_validation();
+    debugger;
     let appointment = (await frappe.call({
         method: 'erpnext.www.book-appointment.index.create_appointment',
         args: {
-            'date': date,
-            'time': time,
-            'contact': contact
+            'date': window.selected_date,
+            'time': window.selected_time,
+            'contact': window.contact
         }
     })).message;
     frappe.msgprint(__('Appointment Created Successfully'));
@@ -181,7 +182,7 @@
 
 function form_validation(){
     var date = window.selected_date;
-    var time = document.getElementsByClassName('selected')[0].id;
+    var time = window.selected_time;
     contact = {};
     contact.name = document.getElementById('customer_name').value;
     contact.number = document.getElementById('customer_number').value;