Fixed Index.tx formatting & line-endings

cc// @nilnilnil @sdougbrown 

I made a hotfix for DuckDuckHack but the indentations to my changes weren't correct. Taking a closer look at the file a few lines were indented with spaces, the majority with tabs and the line-endings were set to Windows (all our other files tend to be Unix)

I've re-indented the file and switched the line endings. If this is overkill I'll dial it back, but no content has changed in this PR.