coffeescript compat

coffeescript compatibility
add parameter 'type' for expressPath.
type can be 'js' or 'coffee'.  type is 'js' by default