Move the createUser function inside module.exports. Will it work?
Do the same thing to pushMessage. o_o;