Remove unused div from UI and rename a couple of javascript vars