style for language element
script will now run on document.ready
close/open events separation