Fix broken media module links in WYSIWYG.

Only add the js to the footer instead of the header on the frontend theme. The
backend theme is left alone.