use of one js: spotdata.js