fix editor bug for old posts & no title
add js file for settings, but not enqueued yet