add cross side scripting headers

add cross side scripting headers. working solution from irc.