Update main.js

Removed version test.