Could any one help me to change salesforce Javascript execute button to Skuid custom button ?

I am new to skuid and I have an execute javascript button on Courses__c custom object it's related to Lead.I have tried to write javascript snipet code and I made some changes to
my code but it doesn't work for me. So could you please help me to
create custom button in skuid with above code.