removeBookings doesn't work, inArray is buggy

Add this function on bottom

function isInArray(value, array) {
	return array.indexOf(value) > -1;
}

---

and replace
if (jQuery.inArray(bookingId, toRemove) >= 0) {

with
if (isInArray(bookingId, toRemove)) {