Array.prototype.filter.call( document.getElementsByClassName( "form-outline datepicker"), function(obj) { activateDatePicker( obj ); } );