added ad header to the js file and updated documentation