reorganizing
much reorganizing of js file with comments