JS backend: extract inline calls during translation