Add javascript to reference/index.txt