Fixed test.js incorrect reference to "pos". Corrected to "./main"