js cleanup and min