Use document.write to populate preview frame

This allows script execution.
Merge pull request #78 from dstockwell/code-editor

Use document.write to populate preview frame
Added new keyframe editor