I have a syntax error, but am not sure where. I have no typos and ran an alert as a test and it worked. Also I can use my canvas in my html but not in my external javascript.
HTML:
<div id="inner">
</div>
JS:
document.getElementById('inner').innerHtml='<canvas id="gameCanvas1" width="800px" height="500px" style="display:block;background:#E6E6E6;margin:100px auto 0px;"></canvas>'