updated for express 3.0, replaced jade with swig