[PATCH v2 02/11] jscript: Move the indexed prop idx lookup into a helper.