index: properly handle nested properties

Squashed commit of the following:

commit d784a6c7d5f4fcf1074bc4c98026a1ea04da8e98
Author: Andy Burke <aburke@bitflood.org>
Date:   Fri Apr 4 05:47:06 2014 -0700

    Add in an important newline.

commit 5d06d0fc635e8b463765a8a206813a779c6f3235
Author: Andy Burke <aburke@bitflood.org>
Date:   Fri Apr 4 05:46:20 2014 -0700

    Remove a disaster newline

commit f9f5840faa1c204548032f61cc070a1be6bedf4b
Author: Andy Burke <aburke@bitflood.org>
Date:   Wed Mar 26 04:34:15 2014 -0700

    Fix an issue with nested properties.

Closes #11.
test: whitespace
add .jshintrc file
index: fix lint