Updated the documentation and the JS file header comment block. Added Parameters section with explanations. Added Options section with explanations, accepted and default values.