Fixed function names in pre.js and post.js