Adds title script to page