reservation: moved javascript into own file