Add a new page and reference the Object Model on the content of the page (Sp.js), I add also a reference to the jQuery library for the document ready event.
executeOrDelayUntilScriptLoadedthat can wait for the fully loaded js.
The code I think is pretty clear: in the document ready I call
getValuescreate the sharepoint object model context and query the specified list for item with ID = 1. To the asynchronous function
executeQueryAsyncyou must specify two callback: the first for the success, and the other for the errors.
If the call return without errors you must get values with the function