ext.guidedtour: cleaned up code, removed jshint warnings, minor code changes