Fix index.html imports and add Analytics code