update WebViewer javascript code to latest from Bob Haimes (dated 10/25/2013)