Added script functionality

- JavaScript source can be passed from a textbox on the Flight page to
the head of the device window. Since it executes before window is done
loading, it allows ad script to use document.write() function