Update main.js

Clientsided greentexting using regular expressions.