create js for add question event