make the line number in JS command errors less wrong

Change-Id: Ib41691daf497d6587cb1d37b8a81728de4043e39
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>