Refactor win32 native dialog-mainloop update code

Just cleaning up last commit.
JavaScript: don't choke on array lists
JavaScript: don't choke when returning object literals
JavaScript: recognize assignation to a parenthesized expression