Call proper function when updating posts; add settings admin JS