Changed dependency to lodash and used the merge function to fix a problem with the extend from underscore.js