Use setTimeout to delay js script start.

This is a temporary hack to get exception traces to work on JS.