Add amd option to jade compiler

- When the amd and client options are set for the jade compiler, the
  template function is wrapped in an amd define block