CSW javascript cross browser fix for getSingleNode