bit on javascript event handling, moving drafted post for publishing