Update main.php

create javascript var for chatbox nickname