fix some functions in js
Merge pull request #3 from di36ofp/booking

fix some functions in js