Update script.js

getting counter updated and call position every 10 secionds