Adding lodash and avoiding double registerElement