Added commentary text, adjusted javascript