Add the start index to the tpl var

Adding start parameter in the template variables for the variable in javascript