use indexes for line numbers
Merge pull request #72 from FarshidB/jsd2

use indexes for line numbers