doc file with javascript format