Fixes #6368: Refactors blog auto save JS and action

Clean up the blog autosave JS and action

Refs #6368