Allows users to create and claim a reservation; using javascript