I have an object like;
var defaults = { id: \'ActionSlider\', element: \'\', closeBtnWidth: 55, panelWidth: 320, clas
You need to add quotes round the class which is a reserved word. Please also note, that you should remove the last comma:
class
var defaults = { id: 'ActionSlider', element: '', closeBtnWidth: 55, panelWidth: 320, "class": '', css: {}, create: function() {} }