Removed unused code. js cleanup