Fixed inputChoices js function declaration