Changed some requires to link to index.js instead of the lib name.

Because when inside vendor/lib or /views/lib, erica is unable to push for
instance constants.js AND constants/ since they become identical prop names.