fixed errors in booking.js