adding some documentation to the javascript initialization code to help decrypt some of the weird function parameters