Wait for iframe to load before updating preview

Instead of waiting time period, which is non-deterministic on certain browsers.

Fixes #40
Re: Issue #44. Replace the keyUp events with keyPress events on menu input elements.