added the javascript for the Google document