Fixed getRandomMessage return always being undefined because of asynchronous call. Now uses a callback