change javascript variable content index blog