minor js cleanup