Move utility functions to utils.js
Begin to implement patient detail view properly
Close div
Allow single record to be edited

Addresses #84