added routes javascript for getting the editable content