js for changing tw doc status working. stubbed in controller