Create custom event script to deal with creating the json file