Update src/js/OpenDocument.js

Added functions to decode file if decode key present.