Minor fixes and additions to jgr_lib_v1304.js