Added javascript external script support.

This allows you to define functions and reuse them, or load a library
(i.e. jQuery)