Added decamelize function for proper re-instating of data attributes