post_create.js - major refactor