move html to js for creating questions, still not working