     if typeof arguments[0] != "object"
         window.console.error "Unexpected type of argument! Expected \"object\", got #{typeof arguments[0]}"
         return false
+
     else   
+
         params = _helpers.extend defaultParams, {}
 
         if !arguments[0].amount?

        amount: 0
        name: ""
        description: ""

    _helpers =
        extend : (a, b) ->

        params.name = arguments[0].name
        params.total = _helpers.numToStr params.amount
        params.description = arguments[0].description || defaultParams.description
        params.onSuccess = arguments[0].onSuccess || defaultParams.onSuccess

        _helpers.openModal params

