Angular JS port of messages app