clean up of js