Follow-up fix for bug#9613 - DynamicField JS.

I thought I improved the javascript generated by the DF backends but
did not pay close enough attention - the javascript did not work
anymore after my 'improvements'.

Now I simplified the code and make sure the generated list of fields
is quoted and separated with commas properly.