Further developed the server side controller Draft.js