Update main.js

Added test features.