baconREST framework for JS