Finally got it to display. I changed the path to the emar_post.php file in the emar.js file so that it will be relative to the caller instead of to the emar.js file. I also changed the div name in the emar.js file to "emardisplay" instead of "myDiv".