add script on event partial