Download JQuery and save it as a static resource by name “JQuery”.
Copy below Visualforce page.
Replace “flow:interview” name by your flow name.
If you are expecting any URL parameter then simply add it as “apex:param” as shown in code.
Add your field names which does not need to be mandatory in variable “nonMandatory”