fixed #1: Moved document javascript files from tinebase to document