Replace comma with semicolon

I'm not a javascript expert, but for me it seems the comma after assigning a variable is somehow wrong. It works but still does not look correct.