Refactor contact.js

Couldn't help it when I saw how it was done before.
Merge pull request #5 from teddyzetterlund/patch-1

Refactor contact.js