js at bottom of page, init animation on load. some function documetation