js cleanup + typos