Changed so there is one less request after changing a post status.
Changed some whitespacing.
Changed the charCodeAt mess.