Update index.js

Add support for typescript (.ts) files
Merge branch 'frankwallis-master'
0.8.0