added the embeded object to the page using the external javascript from the main.js