I have an issue with Javascript errors (Object Expected) in normal mode while it works in Edit mode. Its failing on the last line shown below.

$(document).ready(function() { updateListItem(); });

function updateListItem() {

var siteUrl = ‘/sites2/sppwgrqy/DashboardTest/’; alert(‘now to get siteUrl’ + siteUrl );

var clientContext = new SP.ClientContext(siteUrl ); //fails here

No hidden components. works fine in Edit mode. 
I upgraded to jquery 1.8.3 and then 1.9.0 with no change.

Has anyone seen this issue get resolved? 

Thanks a bunch.