JavaScript TODO cleanup.