main.js cleanup

Signed-off-by: Kamaal Aboothalib <kamaal@kamaal.me>