Mixed messages

Here is my solution to the mixed messages project in js.
Some feedback would be appreciated.