Turn receiveMessage functions in main.js and potoon.js from if-else to switch-case
80-character line-width
Replace live events with click events where possible