fix "Error: $element.daterangepicker is not a function"