updated js to reflect latest changes.  slid in fix for issue 6