TRUNK-2658: Javascript errors on patient dashboard in firefox