server code from backbone-fundamentals