reduced memeory leaks, cleaned javascript files, removed event listeners