DuettoBackend: Minor fix to JS generator