Update main.js

Adding beta features to code.