Now passes JSHint. fixes #5