Added ability to send code to the client from outside a view, also fixed executing those script blocks.