MDL-43687 Javascript: Correct instantiation of the question-preview

This addresses issues discovered during testing, including:
* inclusion of the M.core_question_preview metadata;
* inclusion of required strings; and
* correcting a function signature.