I need to look at this again. Fixing an error in the JS but I need to get to the cause rather than just hide the problem. 

git-svn-id: https://plugins.svn.wordpress.org/spots/trunk@891303 b8457f37-d9ea-0310-8a92-e5e31aec5664