Change LastIndexJavaScriptImplementation()

Change LastIndexJavaScriptImplementation() to match the spec pseudo code
of http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.8