added embeding functionality that adds script tags to a html page