minor js cleanup.