refs #17468, update inline query examples to use AMD syntax

Squashed commit of the following:

commit 0112f9c8df5c2100565d94be8edd20927ef31a12
Author: Mustafa Celik <celikmus@gmail.com>
Date:   Sun May 11 00:12:27 2014 +0100

    Update acme.js

    fixed query() examples; we now use nodelist methods.

commit 15e415d593725239071cc541dbc2d276c0b96d31
Author: Mustafa Celik <celikmus@gmail.com>
Date:   Thu Oct 3 02:07:05 2013 +0100

    Updating the examples to AMD syntax.

    Refs #17468
Make getObject("", false, obj) return obj rather than undefined.
Matches 1.9 behavior and fixes many dojox/mvc/tests failures.
Refs #16291.