X-Editable JS cleanup