simplest front end example now works, sails api left to do