camera index, js edited