fixing documentjs script