Changed text/javascript to index