Add return value of called methods

Get from bootstrap-datepicker.
If a function is called, the variable internal_return stores its return value and finally returns it.