Fix JavaScript errors reported by @jayfresh
Fix JavaScript errors reported by @jayfresh

See: https://gist.github.com/4160930/92c472eee0943c907262ea8e8879ff266ded533b

This passes JSHint.

TiddlySpace/tiddlyspace,TiddlySpace/tiddlyspace,TiddlySpace/tiddlyspace