calling apexfunction

i am trying to call apexfunction the example in skuid Opportunity javascript button i pasted the code in snippet and https://community.skuidify.com/skuid/topics/calling_apex_function and when i click on that button its doing nothing what wrong did i do plzz tell me

hello experts plz help for beginners its sound strange but some help from u guys

What do you see if you open the Chrome Developer Tools Console?

https://developers.google.com/web/tools/chrome-devtools/


Error: https://skuid.ap2.visual.force.com/jslibrary/1444699760000/sfdc/VFRemote.js is being assigned a //# sourceMappingURL, but already has one
Error: https://skuid.ap2.visual.force.com/jslibrary/1442862172000/ui-sfdc-javascript/SfdcCore.js is being assigned a //# sourceMappingURL, but already has one
Error: https://skuid.ap2.visual.force.com/jslibrary/1445535098000/sfdc/main.js is being assigned a //# sourceMappingURL, but already has one
Error: https://skuid.ap2.visual.force.com/jslibrary/1444699760000/sfdc/Security.js is being assigned a //# sourceMappingURL, but already has one
Error: https://skuid.ap2.visual.force.com/jslibrary/1444699760000/sfdc/MarketingSurveyResponse.js is being assigned a //# sourceMappingURL, but already has one
Error: https://login.salesforce.com/jslibrary/SessionServer190.js is being assigned a //# sourceMappingURL, but already has one
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. skuid__ui

when i press on that button it shows this error
TypeError: skuid.model.getmodel is not a function

should i write in function

funclion click(){
all code here
}
and paste that in snippet