cleaned up some comments. organized JS