Adjusted JS for compatibility

git-svn-id: https://plugins.svn.wordpress.org/lodgixcom-vacation-rental-listing-management-booking-plugin/trunk@1007246 b8457f37-d9ea-0310-8a92-e5e31aec5664