Created message controller and main.js