Replaced the submit button with a preview button at the bottom of the new post page. This button brings up a pop up window which has the output of parse-post.php. This means I only have the write the parse code once rather than client side and server side. I also added a loading giff that is displayed behind the preview box which makes waiting for the server more tollerable.