Optimized `datalist` by leveraging closure scope, optimized `element` methods by changing accepted and removed instanceof validation