Added GetFileByIndex support to the JavaScript (inside getFile)
Authored by: jaroberts 2007-12-05
Parent: [r657]
Child: [r659]