Update test.js

Global position variable