Documentation and some cleanup of animations.js
Documentation for idmanager.js
jshint corrections