JS counts from 0, too.

Signed-off-by: Mariusz Fik <fisiu@opensuse.org>