Update js/tour.js

Updated tour.js to respect window boundaries