Implement a better way of handling exceptions in PaperScript on Firefox and Chrome.

Use dynamically inserted script tag rather than compiled function since Firefox reports correct line numbers there.