karma + jasmin configuration; a fix for the $index value (was off by 1)