Added JavaScript stuff to send more parameters to New controller.