Restructured things a bit. Still learning, so this won't be anywhere near concise and proper node/javascript coding. Bear with me :P