add time shaft for reservation and update reservation code
use AJAX instead of XMLHttpRequest
allow user to input the time field