added another test case for replaceAt
updated index.html to include proper js files