added  reference to the jsapi script
added viewer to the app