Make judicious use of layouts.

- [ ] Extract duplicate code into layout
- [ ] Use layout
- [ ] Refactor JS on contact page