JavaScript Classes and code that help manage .indd documents