final js cleanup