start javascript, change index