Fixed guest/register radio buttons & cleaned up main.js