message app modularized with requirejs