replaced original main.js with new main.js

took main.js from trial repository. Now messages are handling player
names inputted by users