added  documentation to the js and html, small change in the parseAnimation function