hotelsquare.js modified and cleaned