set content type in ajax request to fix issue. dom was not being sent.  added debug setting to reduce output and improve performance.