outsource javascript for recipient
change havascript var data to dataset