I was tasked with creating a mini code editor to enable technical users to implement logic not achievable with our existing rules engine. Admins can write bits of javascript, using parameters we provide, to perform any action on potentially thousands of users.