adding javascript for reserve button