Backport js.Dynamic.newInstance returns Object with Dynamic.

Instead of just Dynamic.

(cherry picked from commit dad0941befaf0663cdcfdf520a9ba1eed19d551e)