clean up structure, remove unused library, add domReady