Clean up spine.js to pass jshint tests added in #7

This is mostly useful after the merge of #7.