Bug 1022646 - [Haida][Contacts] Form view separated [WIP PATCH]

I believe these functions could be in utilities/misc.js