update version.js to run asynchronously and eliminate race conditions in code
Avoid sha pollution if the sha reported in ver.txt is incorrect.