cleaned up post.js