Fixed syntax error in spotter.js