Minor js cleanup.
Simplify the logic and use of can_propose? a bit.